#pragma once
#include "stdafx.h"

#ifdef HL_EXPORTS
#define HL_API __declspec(dllexport)
#else
#define HL_API __declspec(dllimport)
#endif

/************************************************************************/
/*Use to track time elapse
/*http://www.cnblogs.com/chuncn/archive/2009/03/25/1421050.html                                                                     */
/************************************************************************/
namespace HLCAO{

class HL_API hlTimeCounter
{
public:
	hlTimeCounter(void);
	~hlTimeCounter(void);
	void				Start() ;         
	void				End();             
	void				Reset();
	float				getElapseTime();
private:
	LONGLONG			_freq;
	LARGE_INTEGER		_begin;
	LARGE_INTEGER		_end;
	float				costTime;            //in second
};


}
